//
//  LoginViewController.h
//  安好
//
//  Created by 冯凯 on 14-10-30.
//  Copyright (c) 2014年 lianchuangbrother. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ResisterView.h"
#import "ChangeNickName.h"
#import <TencentOpenAPI/TencentOAuth.h>
#import "RealNameAuthentication.h"
@interface LoginViewController : BaseViewController<UITextFieldDelegate,TencentSessionDelegate,RealNameAuthorationDelegate>
#pragma mark - 登陆
/**
 *  加载中
 */
@property (strong, nonatomic) MBProgressHUD * loginMBPro;
/**
 *  背景的视图，为了方便iPhone4的动画
 */
@property (strong, nonatomic) IBOutlet UIView *backView;
/**
 *  密码的输入框
 */
@property (strong, nonatomic) IBOutlet UITextField *passWordTextField;
/**
 *  用户名的输入框
 */
@property (strong, nonatomic) IBOutlet UITextField *userNameTextField;
/**
 *  登陆的点击
 *
 *  @param sender 登陆
 */
- (IBAction)login:(UIButton *)sender;
#pragma - mark 注册
/**
 *  跳转注册页面
 *
 *  @param sender 注册
 */
- (IBAction)PushRegister:(UIButton *)sender;
/**
 *  注册页面
 */
@property (strong, nonatomic) ResisterView * resister;
/**
 *  返回上级页面
 *
 *  @param sender 返回上级页面
 */
- (IBAction)back:(UIButton *)sender;
/**
 *  QQ
 */
@property (strong, nonatomic) TencentOAuth* tencentOAuth;
/**
 *  QQ权限
 */
@property (strong, nonatomic) NSArray * permissions;
/**
 *  QQOpenID
 */
@property (strong, nonatomic) NSString * tencentOrSinaOAuthOpenID;
/**
 *  QQ登陆
 *
 *  @param sender
 */
@property (strong, nonatomic) IBOutlet UIView *loginQWView;
- (IBAction)QQLogin:(UIButton *)sender;
@property (strong, nonatomic) IBOutlet UIView *titleBackView;
#pragma - mark 微博登陆
/**
 *  微博登录
 *
 *  @param sender 无
 */
- (IBAction)loginSina:(UIButton *)sender;
- (IBAction)weixinLogin:(UIButton *)sender;
#pragma - mark 修改昵称
/**
 *  修改昵称页面
 */
@property (strong, nonatomic) ChangeNickName * changeNickName;
/**
 *  QQ或者微博的用户资料
 */
@property (strong, nonatomic) NSDictionary * qqOrWeiboUserDictionary;
@property (strong, nonatomic) NSString * qqOrWeiboString;
/**
 *  微信的code
 */
@property (strong, nonatomic) NSString * weixinCode;
@property (strong, nonatomic) NSString * access_token;
@property (strong, nonatomic) NSString * openid;
/**
 *  实名认证view
 */
@property (strong, nonatomic) RealNameAuthentication *realName;
/**
 *  显示实名认证
 */
- (void)showRealNameView;
/**
 *  分享的view
 */
@property (strong, nonatomic) IBOutlet UIView *shareQQView;
/**
 *  是否注册
 */
@property (assign, nonatomic) BOOL isRes;
@property (strong, nonatomic) IBOutlet UIImageView *anhaoLogo;
@property (strong, nonatomic) IBOutlet UIImageView *anhaoupLine;
@property (strong, nonatomic) IBOutlet UIImageView *anhaodownLine;
@property (strong, nonatomic) IBOutlet UIButton *loginButton;
@property (strong, nonatomic) IBOutlet UIImageView *anhaouserImage;
@property (strong, nonatomic) IBOutlet UIImageView *anhaopasswordImage;
@property (strong, nonatomic) IBOutlet UIButton *forgetButton;
@property (strong, nonatomic) IBOutlet UIButton *weixinButton;
@property (strong, nonatomic) IBOutlet UIButton *QQButton;
@property (strong, nonatomic) IBOutlet UIButton *weiboBuuton;

@property (assign,nonatomic) BOOL isChangeNameWeibo;


@end
